package com.yh.correct.dao;

import java.util.List;
import java.util.Map;
import org.springframework.stereotype.Repository;
import com.yh.correct.model.Thought;

/**
 * 思想教育DAO数据接口
 * 
 * @author 陈帅
 *
 */
@Repository //用于标注数据访问组件，即DAO组件
public interface IThoughtMapper {
	/**
	 * 查询单个“思想教育登记”明细
	 * 
	 * @param Thought
	 * @return 
 	 */
    Map<String,Object> getThought(Thought t) throws Exception;
	/**
	 * 增加思想教育登记
	 * 
	 * @param Thought
	 */
	 int addThought(Thought t) throws Exception;
	
	/**
	 * 删除思想教育登记
	 *
	 * @param Thought
	 */
	 int delThought(Thought t) throws Exception;
	/**
	 * 修改思想教育登记
	 * 
	 * @param Thought
	 */
	 int editThought(Thought t) throws Exception;
	
	/**
	 * 模糊查询匹配的“思想教育登记”列表
	 * 
	 * @param Thought
	 * @return
	 */
	 List<Object> getLikeThoughts(Map<String,Object> condition) throws Exception; 
	
	/**
	 * 模糊查询匹配的“思想教育登记”的数量
	 * 
	 * @param Thought
	 * @return
	 * 
	 */
	 Integer getLikeThoughtsCount(Map<String,Object> condition) throws Exception;
	
	/**
	 * 获取所有记录,导出excel
	 * @return
	 */
    List<Map<String,Object>> getAllT() throws Exception;	
	
	
}
